<script setup lang="ts">
import { ref } from 'vue';

const num = ref(1)

function addOne() {
    num.value += 1;
}

defineExpose({
    num,
    addOne
})
</script>

<template>
    <div>
        num is {{ num }}
    </div>
</template>